home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1014 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.0 KB

  1. From: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
  2. Date: Tue, 15 Feb 94 11:28:21 +0100
  3. Message-Id: <9402151028.AA11871@issan.informatik.uni-dortmund.de>
  4. To: nox@jelal.north.de
  5. In-Reply-To: <9402122329.AA00137@jelal.north.de> (message from Juergen Lock on Sun, 13 Feb 94 0:29:18 CET)
  6. Subject: Re: Inquiring cttys
  7.  
  8. Juergen Lock <nox@jelal.north.de> writes:
  9.  
  10. |>     volatile struct stat sb;
  11.  
  12. |>     *(short *)&sb = fd;    /* -1 for /dev/tty */
  13. |>     if (r = Fcntl(procf, &sb, PFSTAT))
  14. |>         error ...
  15. |>     find device...
  16.  
  17. |> (volatile seems necessary because of the gcc Fcntl binding(?), can this be
  18. |> fixed?)
  19.  
  20. This should not be necessary with newer gcc's, where the pseudo
  21. register "memory" can be specified as being clobbered in the asm spec.
  22. I think this is taken care of in the current MiNTlibs.
  23.  
  24. Andreas.
  25. -- 
  26. ----------------------------------------------------------------------
  27. Andreas Schwab                                  "And now for something
  28. schwab@ls5.informatik.uni-dortmund.de            completely different"
  29.